import { useContext } from 'react'
import { ThemeContext } from 'styled-components'

// 这里再react函数组件中，可以使用useContext拿到theme
 const MyComponent = () => {
  const themeContext = useContext(ThemeContext)

  console.log('Current theme: ', themeContext)
  // ...
  return <div>
      aaaaa
  </div>
}

export default MyComponent